.r {
  float: right;
}
.l {
  float: left;
}
.clear {
  clear: both;
}
b {
  display: block;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  padding: 2px;
  border: 2px solid #879372;
  margin: 0 2px 2px 0;
  float: left;
  &:after {
      content: '';
      display: block;
      width: 12px;
      height: 12px;
      background: #879372;
      overflow: hidden;
  }
  &.c {
      border-color: #000;
      &:after {
          background: #000;
      }
  }
  &.d {
      border-color: #560000;
      &:after {
          background: #560000;
      }
  }
}
.bg {
  background: url('//img.alicdn.com/tps/TB1qq7kNXXXXXacXFXXXXXXXXXX-400-186.png') no-repeat;
  overflow: hidden;
}

.app {
    width: 640px;
    padding-top: 42px;
    // box-shadow: 0 0 10px #fff inset;
    // border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -480px 0 0 -320px;
    background: #efcc19;
    box-sizing: border-box;
    overflow: hidden;

    .g-timer {
      position: absolute;
      top: 20px;
      right: 20px;
    }
}

.rect {
    width: 480px;
    padding: 45px 0 35px;
    border: #000 solid;
    border-width: 0 10px 10px;
    margin: 0 auto;
    position: relative;
    &.drop {
        -webkit-transform: translateY(5px);
        transform: translateY(5px);
    }
}

.screen {
    box-sizing: border-box;
    width: 390px;
    height: 478px;
    border: solid 5px;
    border-color: #987f0f #fae36c #fae36c #987f0f;
    margin: 0 auto;
    position: relative;
    .panel {
        box-sizing: border-box;
        width: 380px;
        height: 468px;
        margin: 0 auto;
        background: #9ead86;
        padding: 8px;
        border: 2px solid #494536;
    }
}

.state {
    width: 108px;
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 28px;
    p {
        line-height: 47px;
        height: 57px;
        padding: 10px 0 0;
        white-space: nowrap;
        clear: both;
    }
    .bottom {
        position: absolute;
        width: 114px;
        top: 426px;
        left: 0;
    }
}
